#include<stdio.h>
#include<unistd.h>
#include<fcntl.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<string.h>

int main()
{
    int fd=open("bite.txt",O_WRONLY|O_CREAT,0644);
    char*msg="i like you linux\n";
    write(fd,msg,strlen(msg));
    close(fd);
    int fd1=open("bite.txt",O_RDONLY);
    char buf[1024];
    ssize_t len=read(fd,buf,1024);
    printf("%s\n",buf);
    close(fd1);
    return 0;
}
